﻿<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReferencedAssemblies="System.dll&#13;&#10;System.Core.dll&#13;&#10;System.Drawing.dll&#13;&#10;System.Windows.Forms.dll&#13;&#10;System.Data.dll&#13;&#10;System.Xml.dll&#13;&#10;Sungero.Domain.Shared&#13;&#10;Sungero.CoreEntities.Shared&#13;&#10;Sungero.Reporting.Shared&#13;&#10;CommonLibrary&#13;&#10;Sungero.Content&#13;&#10;Sungero.Domain&#13;&#10;Sungero.Content.Shared&#13;&#10;Sungero.Domain.Interfaces&#13;&#10;Sungero.Workflow.Interfaces&#13;&#10;Sungero.Docflow.Shared&#13;&#10;Sungero.Docflow.Server" ReportInfo.CreatorVersion="2020.2.12.0">
  <ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
using Sungero.Docflow;
using Sungero.Domain.Shared;
using Sungero.CoreEntities;
using Sungero.Core;
using Resources = Sungero.Docflow.Reports.Resources;


namespace FastReport
{
  public class ReportScript
  {
  }
}
  </ScriptText>
  <Dictionary>
    <SungeroSqlDataConnection Name="Sungero_Connection" Restrictions="DontModify, DontEdit, DontDelete, HideAllProperties" ConnectionStringExpression="[SungeroConnectionString]">
      <TableDataSource Name="Table" Alias="sourceData" DataType="System.Int32" Enabled="true" CanEdit="true" SelectCommand="${SelectFromTempTable}">
        <Column Name="ToName" DataType="System.String" PropName="Column"/>
        <Column Name="PostAddress" DataType="System.String" PropName="Column"/>
        <CommandParameter Name="ReportSessionId" DataType="16" IsDbType="true" Expression="[ReportSessionId]"/>
      </TableDataSource>
    </SungeroSqlDataConnection>
    <SungeroParameter Name="SungeroConnectionString" Restrictions="DontModify, DontEdit, DontDelete, HideAllProperties, DontShow" Id="64873b5c-e3a8-424e-af26-ef25027a96ae" IsRequired="false" IsCollection="false" InternalDataType="System.String" IsSimpleDataType="false" EntityTypeId="00000000-0000-0000-0000-000000000000"/>
    <SungeroParameter Name="FromName" Id="9ed57b84-0161-47f4-a5c7-5ed3b0543392" IsRequired="false" IsCollection="false" InternalDataType="System.String" IsSimpleDataType="false" EntityTypeId="00000000-0000-0000-0000-000000000000"/>
    <SungeroParameter Name="TotalMailCount" Id="867b20e2-d167-4b52-be32-be99bf52326c" IsRequired="false" IsCollection="false" InternalDataType="System.String" IsSimpleDataType="false" EntityTypeId="00000000-0000-0000-0000-000000000000"/>
    <SungeroParameter Name="OutgoingDocuments" Id="bf958fd6-165c-4c75-9e4c-7d8507fb7a68" IsRequired="false" IsCollection="true" InternalDataType="Sungero.Docflow.IOutgoingDocumentBase, Sungero.Domain.Interfaces" IsSimpleDataType="false" EntityTypeId="f5f104fb-52e4-422b-9de1-a36937d85a2d"/>
    <SungeroParameter Name="TempTableName" Id="54aa4928-efe8-492e-8327-e6e64963c54d" IsRequired="false" IsCollection="false" InternalDataType="System.String" IsSimpleDataType="false" EntityTypeId="00000000-0000-0000-0000-000000000000"/>
    <SungeroParameter Name="ReportSessionId" Id="0d688b91-8c2f-47b9-8b7e-6925b6cd7ffb" IsRequired="false" IsCollection="false" InternalDataType="System.String" IsSimpleDataType="false" EntityTypeId="00000000-0000-0000-0000-000000000000"/>
  </Dictionary>
  <ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" FirstPageSource="15" OtherPagesSource="15" Watermark.Font="Arial, 60pt">
    <ReportTitleBand Name="ReportTitle1" Width="1047.06" Height="94.5">
      <TextObject Name="Text1" Left="916.65" Width="94.5" Height="28.35" Text="АНФ 14/01&#13;&#10;Ф. 103" HorzAlign="Right" Font="Arial, 10pt"/>
      <TextObject Name="Text2" Top="28.35" Width="1048.95" Height="18.9" Text="СПИСОК № ___" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt, style=Bold"/>
      <TextObject Name="Text3" Top="47.25" Width="1048.95" Height="18.9" Text="внутренних почтовых отправлений" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt, style=Bold"/>
      <TextObject Name="Text4" Top="66.15" Width="1048.95" Height="18.9" Text="от [Sungero.Core.Calendar.Now]" Format="Date" Format.Format="d" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt, style=Bold"/>
    </ReportTitleBand>
    <PageHeaderBand Name="PageHeader1" Top="98.5" Width="1047.06" Height="20.79">
      <TextObject Name="Text88" Left="916.65" Width="94.5" Height="18.9" PrintOn="LastPage, OddPages, EvenPages, RepeatedBand, SinglePage" Text="Лист [Page#]" HorzAlign="Right" Font="Arial, 10pt"/>
    </PageHeaderBand>
    <DataBand Name="Data1" Top="289.83" Width="1047.06" Height="18.9" CanGrow="true" CanShrink="true" DataSource="Table">
      <TextObject Name="Text31" Width="47.25" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" Text="[Row#]" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text32" Left="47.25" Width="283.5" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" Text="[sourceData.ToName], [sourceData.PostAddress]" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text33" Left="330.75" Width="132.3" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text34" Left="463.05" Width="56.7" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text35" Left="519.75" Width="94.5" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text36" Left="614.25" Width="94.5" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text37" Left="708.75" Width="103.95" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text38" Left="916.65" Width="132.3" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text39" Left="812.7" Width="103.95" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <DataHeaderBand Name="DataHeader1" Top="123.29" Width="1047.06" Height="162.54" RepeatOnEveryPage="true">
        <TextObject Name="Text22" Top="151.2" Width="47.25" Height="11.34" Border.Lines="All" CanBreak="false" Text="1" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text23" Left="47.25" Top="151.2" Width="283.5" Height="11.34" Border.Lines="All" CanBreak="false" Text="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text24" Left="330.75" Top="151.2" Width="132.3" Height="11.34" Border.Lines="All" CanBreak="false" Text="3" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text25" Left="463.05" Top="151.2" Width="56.7" Height="11.34" Border.Lines="All" CanBreak="false" Text="4" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text26" Left="519.75" Top="151.2" Width="94.5" Height="11.34" Border.Lines="All" CanBreak="false" Text="5" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text27" Left="614.25" Top="151.2" Width="94.5" Height="11.34" Border.Lines="All" CanBreak="false" Text="6" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text28" Left="708.75" Top="151.2" Width="103.95" Height="11.34" Border.Lines="All" CanBreak="false" Text="7" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text29" Left="916.65" Top="151.2" Width="132.3" Height="11.34" Border.Lines="All" CanBreak="false" Text="9" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text30" Left="812.7" Top="151.2" Width="103.95" Height="11.34" Border.Lines="All" CanBreak="false" Text="8" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text19" Left="708.75" Top="85.05" Width="103.95" Height="66.15" Border.Lines="All" Text="Сумма платы за пересылку, без НДС (руб.)" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text13" Top="85.05" Width="47.25" Height="66.15" Border.Lines="All" Text="№№&#13;&#10;п/п" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text14" Left="47.25" Top="85.05" Width="283.5" Height="66.15" Border.Lines="All" Text="Адресат (Ф.И.О. / наименование, почтовый адрес)" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text15" Left="330.75" Top="85.05" Width="132.3" Height="66.15" Border.Lines="All" Text="ШПИ (Штриховой почтовый идентификатор)" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text16" Left="463.05" Top="85.05" Width="56.7" Height="66.15" Border.Lines="All" Text="Вес (кг.)" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text17" Left="519.75" Top="85.05" Width="94.5" Height="66.15" Border.Lines="All" Text="Сумма объявленной ценности, (руб.)" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text18" Left="614.25" Top="85.05" Width="94.5" Height="66.15" Border.Lines="All" Text="Сумма наложенного платежа, (руб.)" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text21" Left="916.65" Top="85.05" Width="132.3" Height="66.15" Border.Lines="All" Text="Примечание" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text20" Left="812.7" Top="85.05" Width="103.95" Height="66.15" Border.Lines="All" Text="Сумма платы за пересылку, в т.ч. НДС (руб.)" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text53" Top="56.7" Width="642.6" Height="28.35" Text="Всего РПО: [TotalMailCount]  Всего листов: [TotalPages#] стр. №[Page#]" Padding="2, 0, 2, 9" VertAlign="Bottom" Font="Arial, 10pt"/>
        <TextObject Name="Text7" Top="37.8" Width="264.6" Height="18.9" Text="Наименование и индекс места приема:" VertAlign="Bottom" Font="Arial, 10pt"/>
        <TextObject Name="Text54" Left="264.6" Top="37.8" Width="378" Height="18.9" Border.Lines="Bottom" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
        <TextObject Name="Text6" Top="18.9" Width="642.6" Height="18.9" Text="Отправитель: [FromName]" VertAlign="Bottom" Font="Arial, 10pt"/>
        <TextObject Name="Text5" Width="151.2" Height="18.9" Text="Вид и категория РПО:" VertAlign="Bottom" Font="Arial, 10pt"/>
        <TextObject Name="Text8" Left="151.2" Width="491.4" Height="18.9" Border.Lines="Bottom" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
      </DataHeaderBand>
      <DataFooterBand Name="DataFooter1" Top="312.73" Width="1047.06" Height="18.9" KeepWithData="true">
        <TextObject Name="Text41" Width="519.75" Height="18.9" CanGrow="true" GrowToBottom="true" Text="Итого:" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text44" Left="519.75" Width="94.5" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text45" Left="614.25" Width="94.5" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text46" Left="708.75" Width="103.95" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text47" Left="916.65" Width="132.3" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text48" Left="812.7" Width="103.95" Height="18.9" Border.Lines="All" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      </DataFooterBand>
    </DataBand>
    <ReportSummaryBand Name="ReportSummary1" Top="335.63" Width="1047.06" Height="181.44" CanBreak="true">
      <TextObject Name="Text9" Width="642.6" Height="18.9" Text="Общее количество: [TotalMailCount] шт." VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text55" Top="18.9" Width="255.15" Height="18.9" Text="Общая сумма объявленной ценности:" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text56" Top="37.8" Width="236.25" Height="18.9" Text="Общая сумма платы за пересылку:" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text57" Top="56.7" Width="198.45" Height="18.9" Text="НДС (в том числе / сверху) *" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text58" Top="75.6" Width="396.9" Height="18.9" Text="Общая сумма платы за объявленную ценность (в т.ч. НДС):" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text59" Top="94.5" Width="85.05" Height="18.9" Text="В т.ч. НДС:" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text60" Top="113.4" Width="189" Height="18.9" Text="Итого за пересылку, с НДС:" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text61" Top="132.3" Width="481.95" Height="18.9" Text="Дополнительные услуги:" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text62" Top="151.2" Width="576.45" Height="18.9" Text="Общая сумма платы за пересылку простых/заказных* уведомление о вручении с НДС -" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text10" Left="576.45" Top="170.1" Width="302.4" Height="11.34" Text="(сумма цифрами и прописью)" HorzAlign="Center" Font="Arial, 6pt"/>
      <TextObject Name="Text11" Left="255.15" Top="18.9" Width="387.45" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text12" Left="236.25" Top="37.8" Width="406.35" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text40" Left="198.45" Top="56.7" Width="444.15" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text42" Left="396.9" Top="75.6" Width="245.7" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text43" Left="85.05" Top="94.5" Width="311.85" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text49" Left="189" Top="113.4" Width="453.6" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Text50" Left="576.45" Top="151.2" Width="302.4" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
      <ChildBand Name="Child1" Top="521.07" Width="1047.06" Height="217.35">
        <TextObject Name="Text87" Top="198.45" Width="340.2" Height="18.9" Text="* - ненужное зачеркнуть" Font="Arial, 10pt"/>
        <TextObject Name="Text78" Left="47.25" Top="183.33" Width="170.1" Height="11.34" Text="(Ф.И.О.)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text85" Left="415.8" Top="183.33" Width="170.1" Height="11.34" Text="(Ф.И.О.)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text52" Left="595.35" Top="179.55" Width="141.75" Height="18.9" Text="(оттиск КПШ ОПС места приема)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text77" Left="47.25" Top="164.43" Width="170.1" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text84" Left="415.8" Top="164.43" Width="170.1" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text76" Left="47.25" Top="153.09" Width="170.1" Height="11.34" Text="(подпись)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text83" Left="415.8" Top="153.09" Width="170.1" Height="11.34" Text="(подпись)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text75" Left="47.25" Top="134.19" Width="170.1" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text82" Left="415.8" Top="134.19" Width="170.1" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text74" Left="47.25" Top="113.4" Width="170.1" Height="11.34" Text="(должность)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text51" Left="255.15" Top="113.4" Width="85.05" Height="85.05" Border.Lines="All" Text="&#13;&#10;М.П." HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text81" Left="415.8" Top="113.4" Width="170.1" Height="11.34" Text="(должность)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text66" Top="94.5" Width="47.25" Height="18.9" Text="Сдал:" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text73" Left="47.25" Top="94.5" Width="170.1" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text79" Left="349.65" Top="94.5" Width="66.15" Height="18.9" Text="Принял:" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text80" Left="415.8" Top="94.5" Width="170.1" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text86" Left="623.7" Top="94.5" Width="85.05" Height="85.05" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text69" Left="113.4" Top="81.27" Width="302.4" Height="11.34" Text="(сумма цифрами и прописью)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text72" Left="113.4" Top="62.37" Width="302.4" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text65" Top="62.37" Width="113.4" Height="18.9" Text="В т.ч. НДС" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text68" Left="113.4" Top="51.03" Width="302.4" Height="11.34" Text="(сумма цифрами и прописью)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text64" Top="32.13" Width="113.4" Height="18.9" Text="Всего к оплате:" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text71" Left="113.4" Top="32.13" Width="302.4" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text67" Left="113.4" Top="20.79" Width="302.4" Height="11.34" Text="(сумма цифрами и прописью)" HorzAlign="Center" Font="Arial, 6pt"/>
        <TextObject Name="Text63" Top="1.89" Width="113.4" Height="18.9" Text="В т.ч. НДС" VertAlign="Center" Font="Arial, 10pt"/>
        <TextObject Name="Text70" Left="113.4" Top="1.89" Width="302.4" Height="18.9" Border.Lines="Bottom" VertAlign="Center" Font="Arial, 10pt"/>
      </ChildBand>
    </ReportSummaryBand>
  </ReportPage>
</Report>
